package com.zhanghp;

/**
 * @author zhanghp
 * @date 2022-08-30 10:49
 */
public class DinnerStrategy {
    private DinnerTemplate dinner;

    public DinnerStrategy(DinnerTemplate dinner) {
        this.dinner = dinner;
    }

    public void eat() {
        dinner.eat();
    }

    public void changeDinner(DinnerTemplate dinner) {
        this.dinner = dinner;
    }
}

